package com.gz.slin.system.dao;

import com.gz.slin.system.pojo.Tree;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2016/8/15.
 */
public interface TreeDao {
    int countByExample(Tree example);

    int deleteByExample(Tree example);

    int deleteByPrimaryKey(Long id);

    int insert(Tree record);

    int insertSelective(Tree record);

    List<Tree> selectByExample(Tree example);

    Tree selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Tree record, @Param("example") Tree example);

    int updateByExample(@Param("record") Tree record, @Param("example") Tree example);

    int updateByPrimaryKeySelective(Tree record);

    int updateByPrimaryKey(Tree record);

    List<Tree> findAllTreeByUid(Long uid);
}
